package cn.uin.domain.auth.service;

import cn.uin.domain.auth.model.entity.HomeUserDetailEntity;
import cn.uin.domain.auth.model.entity.HomeUserEntity;
import cn.uin.domain.auth.model.entity.HomeUserRegisterEntity;
import cn.uin.domain.auth.model.entity.SendEmailEntity;

/**
 * @ClassName IHomeUserService
 * @Description:用户服务接口
 * @Author: Administrator
 * @CreateDate: 2025/10/15 16:18
 * @Version: 1.0
 */
public interface IHomeUserService {

	/**
	 * 注册
	 * @param homeUserRegisterEntity
	 * @return
	 */
	HomeUserEntity register(HomeUserRegisterEntity homeUserRegisterEntity);

	/**
	 * 发送邮箱验证码
	 * @param email
	 * @param type:验证码类型(1:注册验证码 ,2:登录验证码)
	 * @return
	 */
	boolean sendEmailCode(Integer type, String email);

	/**
	 * 发送邮箱验证码
	 * @param type:验证码类型(1:注册验证码 ,2:登录验证码)
	 * @param phone
	 * @return
	 */
	boolean sendPhoneCode(Integer type, String phone);

	/**
	 * 编辑用户详细信息
	 * @param homeUserDetailEntity
	 * @return
	 */
	boolean editUserDetail(HomeUserDetailEntity homeUserDetailEntity);
}
